{cm var="list" uid="'.$userinfo['user_id'].'"  limit="10" order="cm_addtime desc"}{/cm}
{notempty name="list"}
<ul class="ui-comment">
{volist name="list" id="zanpian"}
{php}
$info=get_info_find($zanpian['cm_sid'],$zanpian['cm_vid'],$GLOBALS['config']['model'][$zanpian['cm_sid']]['name'].'_id');
$name=$info[$GLOBALS['config']['model'][$zanpian['cm_sid']]['name'].'_name'];
$url=zanpian_read_url('home/'.$GLOBALS['config']['model'][$zanpian['cm_sid']]['name'].'/read',$info);
{/php}
<li>
  <div class="news-avatar">
  <a href="javascript:void(0);"><img src="{:zanpian_avatar_url($userinfo)}" alt="{$userinfo.user_nickname}"></a></div>
  <div class="news-box">
  <div class="news-cnt">
  <div class="news-top">
   {eq name="zanpian.cm_pid" zanpian="0"}<a href="javascript:void(0);">我</a> 评论了：<span class="name"><a href='{$url}' target='_blank'>【{$GLOBALS['config']['model'][$zanpian['cm_sid']]['title']}】{$name}</a></span>
    {else/}<a href="javascript:void(0);">我</a> 回复了<span class="user">&nbsp;<a href='{:zanpian_user_url('user/home/index',array('user_id'=>$zanpian['cm_tuid']))}' target='_blank'>{:get_user_info($zanpian['cm_tuid'],'user_id','user_nickname')}</a>&nbsp;</span>在：<span class="name"><a href='{$url}' target='_blank'>【{$GLOBALS['config']['model'][$zanpian['cm_sid']]['title']}】{$name}</a></span><span>的评论</span>
    {/eq}
  </div>
   </div>
  <p class="cmt">{$zanpian['cm_content']|strip_tags|get_emots}</p>
   <div class="news-ft">{$zanpian['cm_addtime']|time_format='Y-m-d H:i:s',1}</div>
  </div>
  </li>
{/volist} 
    </ul>
    <!--<div class="box-page clearfix ajax-page" id="long-page"><ul id="pages"></ul><div></div></div>-->
{/notempty}